import Main from '@/views/Main'

const purchaseRouter = {
  path: '/purchase',
  component: Main,
  redirect: '/purchase/purchaseOrder',
  name: 'purchase',
  meta: {
    title: 'purchase'
  },
  children: [
    {
      path: 'purchaseOrder',
      component: () => import('@/views/purchase/PurchaseOrder'),
      name: 'PurchaseOrder',
      meta: { title: 'PurchaseOrder' }
    },
    {
      path: 'purchaseReturnOrder',
      component: () => import('@/views/purchase/PurchaseReturnOrder'),
      name: 'PurchaseReturnOrder',
      meta: { title: 'PurchaseReturnOrder' }
    },
    {
      path: 'purchaseExchangeOrder',
      component: () => import('@/views/purchase/PurchaseExchangeOrder'),
      name: 'PurchaseExchangeOrder',
      meta: { title: 'PurchaseExchangeOrder' }
    },
    {
      path: 'supplier',
      component: () => import('@/views/purchase/Supplier'),
      name: 'Supplier',
      meta: { title: 'Supplier' }
    }
  ]
}
export default purchaseRouter
